package com.lpit.service.impl;

import com.lpit.mapper.ActivityMapper;
import com.lpit.pojo.Activity;
import com.lpit.result.ResponseResult;
import com.lpit.service.ActivityInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActivityInformationServiceImpl implements ActivityInformationService {
    @Autowired
    ActivityMapper activityMapper;
    /**
     * 查看活动信息列表
     * @return
     */
    @Override
    public ResponseResult<List<Activity>> getActivity() {
        List<Activity> activities = activityMapper.activityMessage();
        return new ResponseResult<>(activities);
    }
}
